package com.zy.imagineCommunity.entity;

public class Chat {

    Integer id;

    Integer postId;

    String content;

    String createTime;

    Integer userId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Chat(Integer id, Integer postId, String content, String createTime, Integer userId) {
        this.id = id;
        this.postId = postId;
        this.content = content;
        this.createTime = createTime;
        this.userId = userId;
    }

    public Chat() {

    }

    @Override
    public String toString() {
        return "Chat{" +
                "id=" + id +
                ", postId=" + postId +
                ", comment='" + content + '\'' +
                ", createTime='" + createTime + '\'' +
                ", userId=" + userId +
                '}';
    }

}
